package org.jeecg.modules.exProject.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.exProject.entity.ExSection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 标段（包）
 * @Author: jeecg-boot
 * @Date: 2024-08-31
 * @Version: V1.0
 */
public interface ExSectionMapper extends BaseMapper<ExSection> {

    /**
     * 通过主表id删除子表数据
     *
     * @param mainId 主表id
     * @return boolean
     */
    public boolean deleteByMainId(@Param("mainId") String mainId);

    /**
     * 通过主表id查询子表数据
     *
     * @param mainId 主表id
     * @return List<ExSection>
     */
    public List<ExSection> selectByMainId(@Param("mainId") String mainId);

    List<ExSection> selectByIds(@Param("ids") String[] ids);

    IPage<ExSection> pageQuery(Page page, @Param("queryForm") ExSection exSection);
}
